package com.vhall.component.controller.account.facade;

import com.vhall.component.entity.account.vo.AccountVO;
import com.vhall.component.entity.account.vo.TouristJudgmentRspVO;
import com.vhall.component.entity.account.vo.TouristJudgmentVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author longzhen.gong
 * @date 2021/6/9 16:20
 */
@FeignClient(value = "AccountFacade"
        , path = "/v4/account")
public interface AccountFacade {

    /**
     * 查询账户信息
     *
     * @param id 参数
     * @return 返回值
     */
    @ApiOperation("查询账户信息")
    @GetMapping(value = "/info")
    AccountVO info(@RequestParam("id") String id);

    /**
     * 兴业，根据token 判断是否是游客
     *
     * @return 返回值 true 是游客；false 不是游客
     */
    @ApiOperation("根据token获取用户信息")
    @PostMapping("/tourist_judgment")
    TouristJudgmentRspVO touristJudgment(@Validated TouristJudgmentVO touristJudgmentVO);

}
